package com.topfinance.frame.util;

import org.apache.commons.configuration.FileConfiguration;
import org.apache.commons.configuration.PropertiesConfiguration;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public final class LoadConfiguration {
	private static Log log = LogFactory.getLog(LoadConfiguration.class);

	public static FileConfiguration loadConfigurationFromAbsPath(
			String fullFileName) throws Exception {
		if (fullFileName == null || fullFileName.equals("")) {
			throw new Exception("initialize configuration failed");
		}
		PropertiesConfiguration configuration = new PropertiesConfiguration(
				fullFileName);
		return configuration;
	}
}